package com.tiemei.demo.util;

import java.util.ArrayList;
import java.util.Collection;
import java.util.List;

import org.apache.commons.lang.StringUtils;


public class Demo {
	public static void main(String args[]){
		System.out.println(System.currentTimeMillis() / 1000);
		float  f = 199447894557.00f; 
		System.out.println(f);
		
		
		System.out.println("\\");
		System.out.println("\\<");
		System.out.println("<''\\");
		
		int[] i3 = {1,2,3};
//		int e = i3[i3.length]; // java.lang.ArrayIndexOutOfBoundsException: 3
		System.out.println(StringUtils.split(" ", ",").length); // 1
		System.out.println(StringUtils.split("", ",").length); // 0
		System.out.println(StringUtils.split(",", ",").length); // 0
		System.out.println(StringUtils.split(" , ,".trim(), ",").length); // 1
		System.out.println(StringUtils.split(" , ,", ",").length); // 2
		System.out.println(StringUtils.split(" , ".trim(), ",").length); // 0
		System.out.println(StringUtils.split("a,b ", ",").length); // 2
		String isNull = null;
		System.out.println(StringUtils.split(isNull == null ? "" : isNull, ",").length); // 2
		
		System.out.println(""+null);
		
		
		
		List<String> strList = new ArrayList<String>();
		strList.add("1");
		strList.add("2");
		strList.add("3");
		Collection<String> strCollection = strList;
		for(int i=0; i<1000; i++) {
			String result = "";
			for(String e : strCollection) {
				result+=e;
			}
			if(result != "123") {
//				System.out.println("Collection sort oderby List Rule");
			} else {
				System.out.println("Collection sort not oderby List Rule");
			}
		}
	}
}
